# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-pysigset
_pkgname=pysigset
pkgver=0.4.0
pkgrel=6
pkgdesc='Signal blocking under Linux & OS X.'
url='https://pypi.org/project/pysigset/#files'
arch=('any')
license=('GPL3')
depends=('python')
makedepends=('python-setuptools' 'python-pip' 'python-wheel')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('492826bab7fb9b8cd64b9264c1eda0c5515794bc767cc8b195b542ae6019225ec239ed7f223e2d60803e1577fdaad8faab1b2869f4502e434905fa9ea365542b')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

